import request from '@/utils/request'

// 查询应急检查列表
export function listTujianjieguoyingjijiancha(query) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha/list',
    method: 'get',
    params: query
  })
}

// 查询应急检查详细
export function getTujianjieguoyingjijiancha(id) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha/' + id,
    method: 'get'
  })
}

// 新增应急检查
export function addTujianjieguoyingjijiancha(data) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha',
    method: 'post',
    data: data
  })
}

// 修改应急检查
export function updateTujianjieguoyingjijiancha(data) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha',
    method: 'put',
    data: data
  })
}

// 删除应急检查
export function delTujianjieguoyingjijiancha(id) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha/' + id,
    method: 'delete'
  })
}

// 导出应急检查
export function exportTujianjieguoyingjijiancha(query) {
  return request({
    url: '/biz/tujianjieguoyingjijiancha/export',
    method: 'get',
    params: query
  })
}